PICTools Programmer's Reference
PIC2List Registration Packet Functions

The P2PktRegistration structure is defined as:

 
Copy Code
typedef struct {
   BYTE    Type;
   DWORD   Length;
   LONG    Op;
   DWORD   Code;
   char    Name[1];
} P2PktRegistration;

P2LAddOrModifyRegistration

 
Copy Code

P2PktRegistration* P2LAddOrModifyRegistration(

    P2LIST*     p2l,

    OPERATION   Op,

    DWORD       Code,

    const char* pszName);

P2LAddOrModifyRegistration adds a registration packet to the PIC2List.  If a packet for opcode Op already exists, then it is modified, otherwise a new packet for opcode Op is added.  A registration packet is added to PIC2List to avoid a PICTools evaluation dialog for a registered PICTools operation occurring within a different PICTools operation.

P2LDeleteRegistration

 
Copy Code

BOOL P2LDeleteRegistration(P2LIST* p2l, P2PktRegistration* pkt);

P2LDeleteRegistration is called to delete a registration packet from the PIC2List.  pkt must point to the Type field of a registration packet within the PIC2List.  No validation is performed.

P2LFindRegistration

 
Copy Code

P2PktRegistration* P2LFindRegistration(P2LIST *p2l, OPERATION Op);

P2LFindRegistration returns a pointer to the registration packet for opcode Op.  P2LfindRegistration returns 0 if there is no registration packet for opcode Op.

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback